| Предыдущая | Следущая | |
Flash 2.
СледущаяScene(): Void
Нет.
Ничего.
Функция; переводит воспроизведение на первый фрейм следующей сцены.
В следующем примере когда пользователь кликнет по кнопке, созданной динамически, воспроизведение перейдет на первый фрейм следующей сцены. Создайте две сцены и поместите следующий код в первый фрейм первой сцены.
stop();
if (init == undefined) {
this.createEmptyMovieClip("Следущаяscene_mc", this.getСледущаяHighestDepth());
Следущаяscene_mc.createTextField("Следущаяscene_txt", this.getСледущаяHighestDepth(), 200, 0, 100, 22);
Следущаяscene_mc.Следущаяscene_txt.autoSize = true;
Следущаяscene_mc.Следущаяscene_txt.border = true;
Следущаяscene_mc.Следущаяscene_txt.text = "Следущая Scene";
this.createEmptyMovieClip("prevscene_mc", this.getСледущаяHighestDepth());
prevscene_mc.createTextField("prevscene_txt", this.getСледущаяHighestDepth(), 00, 0, 100, 22);
prevscene_mc.prevscene_txt.autoSize = true;
prevscene_mc.prevscene_txt.border = true;
prevscene_mc.prevscene_txt.text = "Prev Scene";
Следущаяscene_mc.onRelease = function() {
СледущаяScene();
};
prevscene_mc.onRelease = function() {
prevScene();
};
init = true;
}
Не забудьте поместить оператор stop() в первый фрейм второй сцены.
prevScene()
| Посмотреть комментарии LiveDocs | Предыдущая | Следущая | |